#include "StdAfx.h"
#include "PlayerControlLogic.h"
#include "PlayerController.h"
#include "PlayerControlElement.h"

//PlayerControlLogic::PlayerControlLogic()
//{
//}

PlayerControlLogic::PlayerControlLogic()	
{
}

void PlayerControlLogic::addPlayerControlElement(PlayerControlElement* playerControlElement)
{
	playerControlElements.push_back(playerControlElement);
}

PlayerControlLogic::~PlayerControlLogic(void){
	std::vector<PlayerControlElement*>::iterator i = playerControlElements.begin();
	while(i != playerControlElements.end())
	{
		delete *i;
		i++;
	}
}

Controller* PlayerControlLogic::makeController()
{
	return new PlayerController(this);
}
